package com.maventools.domain;

import lombok.Data;

import java.util.Map;

/**
 * @BelongsProject: maventools
 * @BelongsPackage: com.maventools.domain
 * @Author: Layla
 * @CreateTime: 2025-04-19  16:47
 * @Description:  环境总体设置
 * @Version: 1.0
 * @Since: Java17
 */
@Data
public class Profile {
    private String id;
    private Activation activation;
    private Map<String, String> properties;
    private boolean isActive;

    @Data
    public static class Activation {
        private Jdk jdk;
        private Os os;
        private Map<String, String> files;

        @Data
        public static class Jdk {
            private String version;
            private String range;

        }

        @Data
        public static class Os {
            private String name;
            private Family family;
            private Arch arch;
            private String version;
        }

        public enum Family {
            WINDOWS,
            UNIX
        }

        public enum Arch {
            x86, x64, x32
        }
    }
}
